package com.wf.day_0615.decorators;

/**
 * @author mpk
 * @since 2024/6/15 14:57:29
 */
public class Eggs extends Decorator{


    public Eggs(FastFood fastFood) {

        super(fastFood, "鸡蛋", 1);
    }

    @Override
    public float cost() {

        return super.getPrice() + super.getFastFood().cost();
    }

    @Override
    public String getDesc() {
        return  "鸡蛋"+super.getDesc() ;
    }
}
